package com.hmjk.health.util;

import java.util.ArrayList;
import java.util.List;

public class ReminderList{
	
	private List<AReminder> rList;//=new ArrayList<aReminder>();	
	
	public ReminderList()
	{
		rList = new ArrayList<AReminder>();
	}
	
	public List<AReminder> getReminderList()
	{
		return rList;
	}
	
	public void addAReminder(AReminder r)
	{
		rList.add(r);
	}
	
	public void removeAReminder(int index)
	{
		
		for(AReminder r:rList){
			//NetDev dev = mSwitchDevList.get(i);
			
			if(r.getIndex() == (index))
			{
				rList.remove(r);
				break;
			}
		}		
	}
	
	public AReminder getReminder(int pos)   //index rList pos
	{
		return rList.get(pos);
	}
	
	public int length()
	{
		return rList.size();
	}
	
	public void cleanReminder(){
		rList.clear();
	}
}

